import * as types from '../../mutation-types/user_login/index';

const state = {
    isLogin : false,
	userToken : '',
	userData: '',
    bgLogin: false
};

const mutations = {
	[types.USER_LOGIN] (state , {isLogin}){
		state.isLogin = isLogin;
	},
    [types.USER_TOKEN] (state , {userToken}){
        state.userToken = userToken;
    },
    [types.USER_DATA] (state , {userData}){
        state.userData = userData;
    },
    [types.BG_LOGIN] (state , {bgLogin}){
        state.bgLogin = bgLogin;
    }
};

export default {
	state ,
	mutations
};
